package com.aiju.cash.ui.main;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.aiju.base.activity.BaseTitleActivity;
import com.aiju.cash.R;
import com.aiju.cash.ui.main.view.CusListView;

/**
 * @author: 流冥
 * @Description: 绑定店铺成功
 */
public class BindSuccessActivity extends BaseTitleActivity implements View.OnClickListener {
    private Button reBind;
    private CusListView cusListView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bind_success);
        mAiJuTitleBarView.setCenterTitle("绑定成功");
        reBind = (Button) findViewById(R.id.reBind);
        cusListView = (CusListView) findViewById(R.id.listView);
        reBind.setOnClickListener(this);
        setData();


    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.reBind:
                startActivity(new Intent(BindSuccessActivity.this,MainActivity.class));
                break;
        }
    }

    private void setData() {
        if (getIntent() != null) {
            String names = getIntent().getStringExtra("names");
            String[] split = names.split(",");
            cusListView.setData(split);
        }
    }

    @Override
    protected boolean enableDefaultBack() {
        return false;
    }



}
